import request from '@/utils/request'

// 查询地磅配置列表
export function listWeightConfig(query) {
  return request({
    url: '/system/weightConfig/list',
    method: 'get',
    params: query
  })
}

// 查询地磅配置详细
export function getWeightConfig(id) {
  return request({
    url: '/system/weightConfig/' + id,
    method: 'get'
  })
}

// 新增地磅配置
export function addWeightConfig(data) {
  return request({
    url: '/system/weightConfig',
    method: 'post',
    data: data
  })
}

// 修改地磅配置
export function updateWeightConfig(data) {
  return request({
    url: '/system/weightConfig',
    method: 'put',
    data: data
  })
}

// 删除地磅配置
export function delWeightConfig(id) {
  return request({
    url: '/system/weightConfig/' + id,
    method: 'delete'
  })
}
